﻿CREATE TABLE [dbo].[tblRevHistory] (
    [ATTDateTime]     NVARCHAR (25) NULL,
    [VDN]             NVARCHAR (12) NOT NULL,
    [ZipCode]         NVARCHAR (10) NOT NULL,
    [Inbound]         VARCHAR (10)  NULL,
    [RevenueInbound]  FLOAT         NOT NULL,
    [RevenueShipping] FLOAT         NOT NULL,
    [CCntrID]         INT           NOT NULL,
    [CallDate]        DATETIME      NOT NULL,
    [CallTimeBegin]   DATETIME      NOT NULL,
    [RevHistoryID]    INT           IDENTITY (1, 1) NOT NULL,
    [AutoShip]        INT           NOT NULL,
    [Xsell]           INT           NOT NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = NULL, 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblRevHistory',
	@level2type = N'COLUMN', @level2name = N'ATTDateTime';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = NULL, 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblRevHistory',
	@level2type = N'COLUMN', @level2name = N'VDN';

